libxl: fix libxl_mac_to_device_nic
authorIan Campbell <ian.campbell@citrix.com>
Thu, 6 Oct 2011 17:50:22 +0000 (18:50 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Thu, 6 Oct 2011 17:50:22 +0000 (18:50 +0100)
commit2d5b0e8b80e01af1e9f0610adf3386babcf9b884
tree952341f292a5d971eeb0ead4ef4b950aac766f1d
parentf43458f6e2f777228fc78cb38280f670fe603b9a
libxl: fix libxl_mac_to_device_nic

I think I broke this back in 22041:4c9ef5ec9146, using i as both the inner and
outer loop iterator.

I've added libxl__compare_macs which helps keep things clean.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/libxl/libxl_internal.c
tools/libxl/libxl_internal.h
tools/libxl/libxl_utils.c